package cn.cdeden.knowledge.mapper;

import cn.cdeden.knowledge.domain.FilesRecentlyViewed;
import cn.cdeden.knowledge.domain.dto.FilesRecentlyDto;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface FilesRecentlyViewedMapper extends BaseMapper<FilesRecentlyViewed> {

    IPage<FilesRecentlyDto> selectByExample(@Param("userId") String userId,
                                            @Param("libraryType") String libraryType,
                                            IPage<FilesRecentlyDto> page);

    IPage<FilesRecentlyDto> queryEnterpriseFileCheck(
        @Param("fileId") String fileId,
        IPage<FilesRecentlyDto> page);

    IPage<FilesRecentlyDto> queryTeamFileCheck(
        @Param("fileId") String fileId,
        IPage<FilesRecentlyDto> page);
}
